package com.smart.smartdata;

import android.content.Context;
import android.support.multidex.MultiDexApplication;

public class App extends MultiDexApplication {

    private static final String TAG = App.class.getSimpleName().trim();
    private static App instance;
    public Context appContext;

    public static App getInstance() {
        return instance;
    }

    private static void setInstance(App instance) {
        App.instance = instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        setInstance(this);
        appContext = getApplicationContext();
        SpUtils.init(this);
    }
    public Context getContext() {
        return appContext;
    }
}
